<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Cache-Control" content="no-siteapp" />

    <title>TBOOX开源工程</title>
    <meta name="description" content="专注于跨平台c开发解决方案">

    
    <meta name="keywords" content="tbox,xmake,gbox,c,lua,跨平台,构建工具,编译工具,makefile,make,编译器,图形库,linux,编程,开发" /> 

    <!-- qq oauth -->
    <meta property="qc:admins" content="5211601217706727767255" />

    <!--icon -->
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="icon" sizes="192x192" href="/static/img/nice-highres.png" />
	<link rel="apple-touch-icon-precomposed" href="/static/img/apple-touch-icon-57x57-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/apple-touch-icon-72x72-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/apple-touch-icon-114x114-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/apple-touch-icon-144x144-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/static/img/retinahd_icon.png" />
	<meta name="msapplication-TileImage" content="/static/img/retinahd_icon.png" />
	
    <link rel="stylesheet" href=" /css/fontawesome/css/font-awesome.min.css ">
    <link rel="stylesheet" href=" /css/main.css ">
    <link rel="canonical" href="https://tboox.org/cn/page12/">
    <link rel="alternate" type="application/rss+xml" title="TBOOX Open Source Project" href="https://tboox.org/feed.xml ">
    <link rel="alternate" hreflang="en" href="https://tboox.org/" />
    <link rel="alternate" hreflang="zh-Hans" href="https://tboox.org/cn/" />

    <!-- css -->
    <link href="/css/reward.css" rel="stylesheet" type="text/css"> 




    <script type="text/javascript">
    function isPC(){    
        var userAgentInfo = navigator.userAgent;  
        var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");    
        var flag = true;    
        for (var v = 0; v < Agents.length; v++) {    
            if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }    
        }    
        return flag;    
    }
    </script>

<!-- baidu ads -->



    <!-- baidu ads -->

</head>


  <body>

    <header id="top">
    <div class="wrapper">
        <a href="/cn" class="brand">TBOOX</a>
        <button id="headerMenu" class="menu"><i class="fa fa-bars"></i></button>
        <nav id="headerNav">
            <ul>
                <li>
                    
                    <a href="/?lang=0">
                    
                        <i class="fa fa-home"></i>English
                    </a>
                </li>

                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/project/">
                            
                        
                            <i class="fa fa-bookmark"></i>项目
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/archive/">
                            
                        
                            <i class="fa fa-archive"></i>归档
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/category/">
                            
                        
                            <i class="fa fa-th-list"></i>分类
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/tag/">
                            
                        
                            <i class="fa fa-tags"></i>标记
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/docs/">
                            
                        
                            <i class="fa fa-book"></i>文档
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="https://xmake.io/#/zh-cn/about/contact" target="_blank" >
                            
                        
                            <i class="fa fa-forumbee"></i>社区
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/donation/">
                            
                        
                            <i class="fa fa-heart"></i>捐助
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/about/">
                            
                        
                            <i class="fa fa-user"></i>关于
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            </ul>
        </nav>
    </div>
</header>



        <div class="page clearfix" index="">
    <div class="left">
        <h1>TBOOX开源工程</h1>
        <small>专注于跨平台c开发解决方案</small>
        <hr />

        <ul>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2019/04/01/xmake-v2.2.5-new-features/">xmake v2.2.5新特性详解</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2019-04-01
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#C/C++" title="Tag: C/C++" rel="tag">C/C++</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>&nbsp;
    
        <a href="/cn/tag/#远程包管理" title="Tag: 远程包管理" rel="tag">远程包管理</a>&nbsp;
    
        <a href="/cn/tag/#包依赖" title="Tag: 包依赖" rel="tag">包依赖</a>&nbsp;
    
        <a href="/cn/tag/#自动构建" title="Tag: 自动构建" rel="tag">自动构建</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <h2 id="第三方包管理器支持">第三方包管理器支持</h2>

<p>新版本对内置的包管理进行了重构，已经支持的非常完善了，我们可以通过</p>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_requires</span><span class="p">(</span><span class="s2">"libuv master"</span><span class="p">,</span> <span class="s2">"ffmpeg"</span><span class="p">,</span> <span class="s2">"zlib 1.20.*"</span><span class="p">)</span><span class="err">`</span>
</code></pre>
</div>

<p>方便的安装使用依赖包，但是官方的包仓库<a href="https://github.com/xmake-io/xmake-repo">xmake-repo</a>目前收录的包还非常少，因此为了扩充xmake的包仓库，
xmake新增了对第三方包管理器的内置支持，通过包命名空间显式指定其他包管理器中的包，目前支持对<code class="highlighter-rouge">conan::</code>，<code class="highlighter-rouge">brew::</code>和<code class="highlighter-rouge">vcpkg::</code>包管理中的包进行安装。</p>

<h4 id="安装homebrew的依赖包">安装homebrew的依赖包</h4>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_requires</span><span class="p">(</span><span class="s2">"brew::zlib"</span><span class="p">,</span> <span class="p">{</span><span class="n">alias</span> <span class="o">=</span> <span class="s2">"zlib"</span><span class="p">}})</span>
<span class="n">add_requires</span><span class="p">(</span><span class="s2">"brew::pcre2/libpcre2-8"</span><span class="p">,</span> <span class="p">{</span><span class="n">alias</span> <span class="o">=</span> <span class="s2">"pcre2"</span><span class="p">}})</span>

<span class="n">target</span><span class="p">(</span><span class="s2">"test"</span><span class="p">)</span>
    <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span>
    <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span> 
    <span class="n">add_packages</span><span class="p">(</span><span class="s2">"pcre2"</span><span class="p">,</span> <span class="s2">"zlib"</span><span class="p">)</span>
</code></pre>
</div>

<h4 id="安装vcpkg的依赖包">安装vcpkg的依赖包</h4>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_requires</span><span class="p">(</span><span class="s2">"vcpkg::zlib"</span><span class="p">,</span> <span class="s2">"vcpkg::pcre2"</span><span class="p">)</span>

<span class="n">target</span><span class="p">(</span><span class="s2">"test"</span><span class="p">)</span>
    <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span>
    <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span> 
    <span class="n">add_packages</span><span class="p">(</span><span class="s2">"vcpkg::zlib"</span><span class="p">,</span> <span class="s2">"vcpkg::pcre2"</span><span class="p">)</span>
</code></pre>
</div>

<p>不过需要注意的是，使用vcpkg，需要先对vcpkg与xmake进行集成才行，详细操作如下：</p>

<p>windows上用户装完vcpkg后，执行<code class="highlighter-rouge">$ vcpkg integrate install</code>，xmake就能自动从系统中检测到vcpkg的根路径，然后自动适配里面包。</p>

<p>当然，我们也可以手动指定vcpkg的根路径来支持：</p>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">xmake</span><span class="kv"> f --vcpkg=f:\vcpkg
</span></code></pre>
</div>

<h4 id="安装conan的依赖包">安装conan的依赖包</h4>

<p>新版本实现了对conan的generator，来集成获取conan中的包信息，我们在xmake中使用也是非常的方便，并且可以传递conan包的所有配置参数。</p>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_requires</span><span class="p">(</span><span class="s2">"conan::zlib/1.2.11@conan/stable"</span><span class="p">,</span> <span class="p">{</span><span class="n">alias</span> <span class="o">=</span> <span class="s2">"zlib"</span><span class="p">,</span> <span class="n">debug</span> <span class="o">=</span> <span class="kc">true</span><span class="p">})</span>
<span class="n">add_requires</span><span class="p">(</span><span class="s2">"conan::OpenSSL/1.0.2n@conan/stable"</span><span class="p">,</span> <span class="p">{</span><span class="n">alias</span> <span class="o">=</span> <span class="s2">"openssl"</span><span class="p">,</span> <span class="n">configs</span> <span class="o">=</span> <span class="p">{</span><span class="n">options</span> <span class="o">=</span> <span class="s2">"OpenSSL:shared=True"</span><span class="p">}})</span>

<span class="n">target</span><span class="p">(</span><span class="s2">"test"</span><span class="p">)</span>
    <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span>
    <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span> 
    <span class="n">add_packages</span><span class="p">(</span><span class="s2">"openssl"</span><span class="p">,</span> <span class="s2">"zlib"</span><span class="p">)</span>
</code></pre>
</div>

<p>执行xmake进行编译后：</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>ruki:test_package ruki<span class="nv">$ </span>xmake
checking <span class="k">for </span>the architecture ... x86_64
checking <span class="k">for </span>the Xcode directory ... /Applications/Xcode.app
checking <span class="k">for </span>the SDK version of Xcode ... 10.14
note: try installing these packages <span class="o">(</span>pass -y to skip confirm<span class="o">)</span>?
  -&gt; conan::zlib/1.2.11@conan/stable  <span class="o">(</span>debug<span class="o">)</span>
  -&gt; conan::OpenSSL/1.0.2n@conan/stable  
please input: y <span class="o">(</span>y/n<span class="o">)</span>

  <span class="o">=</span>&gt; installing conan::zlib/1.2.11@conan/stable .. ok
  <span class="o">=</span>&gt; installing conan::OpenSSL/1.0.2n@conan/stable .. ok

<span class="o">[</span>  0%]: ccache compiling.release src/main.c
<span class="o">[</span>100%]: linking.release <span class="nb">test</span>
</code></pre>
</div>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2019/04/01/xmake-v2.2.5-new-features/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2019/04/01/xmake-v2.2.5-new-features/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2019/03/29/xmake-update-v2.2.5/">xmake v2.2.5, 更加完善的包依赖管理</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2019-03-29
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#C/C++" title="Tag: C/C++" rel="tag">C/C++</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>&nbsp;
    
        <a href="/cn/tag/#远程包管理" title="Tag: 远程包管理" rel="tag">远程包管理</a>&nbsp;
    
        <a href="/cn/tag/#包依赖" title="Tag: 包依赖" rel="tag">包依赖</a>&nbsp;
    
        <a href="/cn/tag/#自动构建" title="Tag: 自动构建" rel="tag">自动构建</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p>此版本耗时四个多月，对包依赖管理进行了重构改进，官方仓库新增了mysql，ffmpeg等常用依赖包，并且新增了大量新特性。</p>

<p>关于新特性的详细说明，可以看下下面的官方文档，或者看下相关文章介绍：<a href="https://tboox.org/cn/2019/04/01/v2.2.5-new-features/">xmake v2.2.5新特性详解</a></p>

<p>关于新特性的详细说明见文章下文。</p>

<ul>
  <li><a href="https://github.com/xmake-io/xmake">项目源码</a></li>
  <li><a href="https://xmake.io/#/zh/">官方文档</a></li>
</ul>

<h2 id="更新内容">更新内容</h2>

<h3 id="新特性">新特性</h3>

<ul>
  <li>添加<code class="highlighter-rouge">string.serialize</code>和<code class="highlighter-rouge">string.deserialize</code>去序列化，反序列化对象，函数以及其他类型</li>
  <li>添加<code class="highlighter-rouge">xmake g --menu</code>去图形化配置全局选项</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/283">#283</a>: 添加<code class="highlighter-rouge">target:installdir()</code>和<code class="highlighter-rouge">set_installdir()</code>接口</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/260">#260</a>: 添加<code class="highlighter-rouge">add_platformdirs</code>接口，用户现在可以自定义扩展编译平台</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/310">#310</a>: 新增主题设置支持，用户可随意切换和扩展主题样式</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/318">#318</a>: 添加<code class="highlighter-rouge">add_installfiles</code>接口到target去自定义安装文件</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/339">#339</a>: 改进<code class="highlighter-rouge">add_requires</code>和<code class="highlighter-rouge">find_package</code>使其支持对第三方包管理的集成支持</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/327">#327</a>: 实现对conan包管理的集成支持</li>
  <li>添加内置API <code class="highlighter-rouge">find_packages("pcre2", "zlib")</code>去同时查找多个依赖包，不需要通过import导入即可直接调用</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/320">#320</a>: 添加模板配置文件相关接口，<code class="highlighter-rouge">add_configfiles</code>和<code class="highlighter-rouge">set_configvar</code></li>
  <li><a href="https://github.com/xmake-io/xmake/issues/179">#179</a>: 扩展<code class="highlighter-rouge">xmake project</code>插件，新增CMakelist.txt生成支持</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/361">#361</a>: 增加对vs2019 preview的支持</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/368">#368</a>: 支持<code class="highlighter-rouge">private, public, interface</code>属性设置去继承target配置</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/284">#284</a>: 通过<code class="highlighter-rouge">add_configs()</code>添加和传递用户自定义配置到<code class="highlighter-rouge">package()</code></li>
  <li><a href="https://github.com/xmake-io/xmake/issues/319">#319</a>: 添加<code class="highlighter-rouge">add_headerfiles</code>接口去改进头文件的设置</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/342">#342</a>: 为<code class="highlighter-rouge">includes()</code>添加一些内置的辅助函数，例如：<code class="highlighter-rouge">check_cfuncs</code></li>
</ul>

<h3 id="改进">改进</h3>

<ul>
  <li>针对远程依赖包，改进版本和调试模式切换</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/264">#264</a>: 支持在windows上更新dev/master版本，<code class="highlighter-rouge">xmake update dev</code></li>
  <li><a href="https://github.com/xmake-io/xmake/issues/293">#293</a>: 添加<code class="highlighter-rouge">xmake f/g --mingw=xxx</code> 配置选线，并且改进find_mingw检测</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/301">#301</a>: 改进编译预处理头文件以及依赖头文件生成，编译速度提升30%</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/322">#322</a>: 添加<code class="highlighter-rouge">option.add_features</code>, <code class="highlighter-rouge">option.add_cxxsnippets</code> 和 <code class="highlighter-rouge">option.add_csnippets</code></li>
  <li>移除xmake 1.x的一些废弃接口, 例如：<code class="highlighter-rouge">add_option_xxx</code></li>
  <li><a href="https://github.com/xmake-io/xmake/issues/327">#327</a>: 改进<code class="highlighter-rouge">lib.detect.find_package</code>增加对conan包管理器的支持</li>
  <li>改进<code class="highlighter-rouge">lib.detect.find_package</code>并且添加内建的<code class="highlighter-rouge">find_packages("zlib 1.x", "openssl", {xxx = ...})</code>接口</li>
  <li>标记<code class="highlighter-rouge">set_modes()</code>作为废弃接口， 我们使用<code class="highlighter-rouge">add_rules("mode.debug", "mode.release")</code>来替代它</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/353">#353</a>: 改进<code class="highlighter-rouge">target:set</code>, <code class="highlighter-rouge">target:add</code> 并且添加<code class="highlighter-rouge">target:del</code>去动态修改target配置</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/356">#356</a>: 添加<code class="highlighter-rouge">qt_add_static_plugins()</code>接口去支持静态Qt sdk</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/351">#351</a>: 生成vs201x插件增加对yasm的支持</li>
  <li>重构改进整个远程依赖包管理器，更加快速、稳定、可靠，并提供更多的常用包</li>
</ul>

<h3 id="bugs修复">Bugs修复</h3>

<ul>
  <li>修复无法通过 <code class="highlighter-rouge">set_optimize()</code> 设置优化选项，如果存在<code class="highlighter-rouge">add_rules("mode.release")</code>的情况下</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/289">#289</a>: 修复在windows下解压gzip文件失败</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/296">#296</a>: 修复<code class="highlighter-rouge">option.add_includedirs</code>对cuda编译不生效</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/321">#321</a>: 修复PATH环境改动后查找工具不对问题</li>
</ul>

                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2019/03/29/xmake-update-v2.2.5/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2019/03/29/xmake-update-v2.2.5/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/11/30/xmake-update-v2.2.3/">xmake v2.2.3, 大量新特性支持</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-11-30
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#C/C++" title="Tag: C/C++" rel="tag">C/C++</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>&nbsp;
    
        <a href="/cn/tag/#远程包管理" title="Tag: 远程包管理" rel="tag">远程包管理</a>&nbsp;
    
        <a href="/cn/tag/#包依赖" title="Tag: 包依赖" rel="tag">包依赖</a>&nbsp;
    
        <a href="/cn/tag/#自动构建" title="Tag: 自动构建" rel="tag">自动构建</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p>此版本主要是对远程依赖包管理进行了一些改进，并且新增了很多小特性，并且此版本已经可以支持通过<code class="highlighter-rouge">xmake update</code>来自我更新升级了，以后升级xmake将会更加方便。</p>

<p>关于新特性的详细说明见文章下文。</p>

<ul>
  <li><a href="https://github.com/xmake-io/xmake">项目源码</a></li>
  <li><a href="https://xmake.io/#/zh/">官方文档</a></li>
</ul>

<h2 id="更新内容">更新内容</h2>

<h3 id="新特性">新特性</h3>

<ul>
  <li><a href="https://github.com/xmake-io/xmake/issues/233">#233</a>: 对mingw平台增加windres的支持</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/239">#239</a>: 添加cparser编译器支持</li>
  <li>添加插件管理器，<code class="highlighter-rouge">xmake plugin --help</code></li>
  <li>添加<code class="highlighter-rouge">add_syslinks</code>接口去设置系统库依赖，分离与<code class="highlighter-rouge">add_links</code>添加的库依赖之间的链接顺序</li>
  <li>添加 <code class="highlighter-rouge">xmake l time xmake [--rebuild]</code> 去记录编译耗时</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/250">#250</a>: 添加<code class="highlighter-rouge">xmake f --vs_sdkver=10.0.15063.0</code>去改变windows sdk版本</li>
  <li>添加<code class="highlighter-rouge">lib.luajit.ffi</code>和<code class="highlighter-rouge">lib.luajit.jit</code>扩展模块</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/263">#263</a>: 添加object目标类型，仅仅用于编译生成object对象文件</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/269">#269</a>: 每天第一次构建时候后台进程自动清理最近30天的临时文件</li>
  <li>增加<code class="highlighter-rouge">xmake update</code>命令实现自我更新</li>
</ul>

<h3 id="改进">改进</h3>

<ul>
  <li><a href="https://github.com/xmake-io/xmake/issues/229">#229</a>: 改进vs toolset选择已经vcproj工程文件生成</li>
  <li>改进编译依赖，对源文件列表的改动进行依赖判断</li>
  <li>支持解压*.xz文件</li>
  <li><a href="https://github.com/xmake-io/xmake/pull/249">#249</a>: 改进编译进度信息显示格式</li>
  <li><a href="https://github.com/xmake-io/xmake/pull/247">#247</a>: 添加<code class="highlighter-rouge">-D</code>和<code class="highlighter-rouge">--diagnosis</code>去替换<code class="highlighter-rouge">--backtrace</code>，改进诊断信息显示</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/259">#259</a>: 改进 on_build, on_build_file 和 on_xxx 等接口</li>
  <li>改进远程包管理器，更加方便的包依赖配置切换</li>
  <li>支持only头文件依赖包的安装</li>
  <li>支持对包内置links的手动调整，<code class="highlighter-rouge">add_packages("xxx", {links = {}})</code></li>
</ul>

<h3 id="bugs修复">Bugs修复</h3>

<ul>
  <li>修复安装依赖包失败中断后的状态不一致性问题</li>
</ul>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/11/30/xmake-update-v2.2.3/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/11/30/xmake-update-v2.2.3/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/11/28/ltui-v1.1/">LTUI v1.1, 一个基于lua的跨平台字符终端UI界面库</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-11-28
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#ltui" title="Category: ltui" rel="category">ltui</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#ltui" title="Tag: ltui" rel="tag">ltui</a>&nbsp;
    
        <a href="/cn/tag/#curses" title="Tag: curses" rel="tag">curses</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#ui" title="Tag: ui" rel="tag">ui</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <h2 id="简介">简介</h2>

<p>LTUI是一个基于lua的跨平台字符终端UI界面库。</p>

<p>此框架源于<a href="https://github.com/xmake-io/xmake">xmake</a>中图形化菜单配置的需求，类似linux kernel的menuconf去配置编译参数，因此基于curses和lua实现了一整套跨平台的字符终端ui库。
而样式风格基本上完全参照的kconfig-frontends，当然用户也可以自己定制不同的ui风格。</p>

<p><img src="https://tboox.org/static/img/ltui/choicebox.png" width="70%" /></p>

<h2 id="安装">安装</h2>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">luarocks</span><span class="kv"> install ltui
</span></code></pre>
</div>

<h2 id="编译">编译</h2>

<p>我们需要先安装跨平台构建工具：<a href="https://github.com/xmake-io/xmake">xmake</a></p>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">xmake</span><span class="kv">
</span></code></pre>
</div>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/11/28/ltui-v1.1/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/11/28/ltui-v1.1/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/10/13/xmake-update-v2.2.2-package-deps/">xmake v2.2.2, 让C/C++拥有包依赖自动构建</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-10-13
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#C/C++" title="Tag: C/C++" rel="tag">C/C++</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>&nbsp;
    
        <a href="/cn/tag/#远程包管理" title="Tag: 远程包管理" rel="tag">远程包管理</a>&nbsp;
    
        <a href="/cn/tag/#包依赖" title="Tag: 包依赖" rel="tag">包依赖</a>&nbsp;
    
        <a href="/cn/tag/#自动构建" title="Tag: 自动构建" rel="tag">自动构建</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <h3 id="前言">前言</h3>

<p>历经四个多月，<a href="https://github.com/xmake-io/xmake">xmake</a>终于更新了新版本v2.2.2，并且上线了重量级功能：原生支持的远程依赖包管理。</p>

<p>而这个特性，其实我陆陆续续写了将近一年的时间，才初步完成，对于此特性的开发进展和历史，有兴趣的同学可以看下相关issues：<a href="https://github.com/xmake-io/xmake/issues/69">#69</a>。</p>

<p>目前的实现效果如下，完全一致的语义版本依赖描述：</p>

<p><img src="https://xmake.io/assets/img/index/add_require.png" width="70%" /></p>

<p>完全一致的跨平台构建行为，一键xmake编译：</p>

<p><img src="https://xmake.io/assets/img/index/package_manage.png" width="80%" /></p>

<p>完整的项目描述：</p>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_requires</span><span class="p">(</span><span class="s2">"tbox 1.6.*"</span><span class="p">,</span> <span class="s2">"libpng ~1.16"</span><span class="p">,</span> <span class="s2">"zlib"</span><span class="p">)</span>

<span class="n">target</span><span class="p">(</span><span class="s2">"test"</span><span class="p">)</span>
    <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span>
    <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span> 
    <span class="n">add_packages</span><span class="p">(</span><span class="s2">"tbox"</span><span class="p">,</span> <span class="s2">"libpng"</span><span class="p">,</span> <span class="s2">"zlib"</span><span class="p">)</span>
</code></pre>
</div>

<p>我先简单介绍下我做这个功能的背景：</p>

<p>我们在写C/C++程序的时候，对于第三方依赖库的使用一直是一个老大难问题，因为每个依赖库的构建系统不同、代码平台支持力度的差异，导致没法像其他高级语言那样有方便好用的包管理支持。</p>

<p>虽然现在已经有了homebrew, vcpkg等包管理工具来解决这一问题，但是多少都有一些局限性，例如：</p>

<ol>
  <li>homebrew不支持iphoneos, android, windows平台</li>
  <li>vcpkg不支持语义版本选择，多版本管理</li>
  <li>另外都不支持项目管理和构建</li>
</ol>

<p>对于目前现有的跨平台构建工具，都缺少内置的包管理支持，像cmake仅提供了<code class="highlighter-rouge">find_package</code>去查找系统包，虽然可以和vcpkg等第三方包管理配合使用，但我个人觉得并不是很方便。
这会使得项目的其他用户在编译的时候，额外要求去安装vcpkg或者安装依赖库到系统上才行，对于pc平台还好弄些，对于iphoneos, android等平台的依赖库，用户就要折腾上一会了。</p>

<p>而xmake的理念就是：<code class="highlighter-rouge">真正的一致维护, 真正的一键编译</code></p>

<ul>
  <li>构建行为的一致性: 不管你的项目是否有库依赖，工具依赖，只需要执行一个<code class="highlighter-rouge">xmake</code>命令，即可编译通过。</li>
  <li>项目维护的一致性: 不管你的项目是在windows上用，还是给linux, iphone, android上用，都只需要一份xmake.lua维护项目即可。</li>
</ul>

<p>而cmake还需要生成额外的第三方IDE工程文件，即使cmakelist.txt相同，但是构建、维护体验上对用户来讲都不可能保证完全一致，毕竟还受限于vc/make此类工具。</p>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/10/13/xmake-update-v2.2.2-package-deps/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/10/13/xmake-update-v2.2.2-package-deps/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
        </ul>

        <!-- baidu ads -->
        

        <!-- Pagination links -->
        <div class="pagination">
          
            <a href="/cn/index.html" class="previous"><i class="fa fa-angle-double-left"></i></a>
            <a href="/cn/page11" class="previous"><i class="fa fa-angle-left"></i></a>
          
          <span class="page_number ">12/40</span>
          
            <a href="/cn/page13" class="next"><i class="fa fa-angle-right"></i></a>
            <a href="/cn/page40" class="next"><i class="fa fa-angle-double-right"></i></a>
          
        </div>
    </div>
    <!-- <button class="anchor"><i class="fa fa-anchor"></i></button> -->
    <div class="right">
        <div class="wrap">

            <!-- codefund ads -->
            

            <div class="side">
                <div>
                    <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
                    最近文章
                </div>
                <ul class="content-ul" recent="">
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/12/17/xmake-update-v2.6.2/">xmake v2.6.2 发布，新增 Linux 内核驱动模块构建支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/12/03/xmake-update-v2.6.1/">xmake v2.6.1 发布，使用 Lua5.4 运行时，Rust 和 C++ 混合编译支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/10/30/xmake-update-v2.5.9/">xmake v2.5.9 发布，改进 C++20 模块，并支持 Nim, Keil MDK 和 Unity Build</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/10/08/xmake-update-v2.5.8/">xmake v2.5.8 发布，新增 Pascal/Swig 程序和 Lua53 运行时支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/08/29/xmake-update-v2.5.7/">xmake v2.5.7 发布，包依赖锁定和 Vala/Metal 语言编译支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/07/26/xmake-update-v2.5.6/">xmake v2.5.6 发布，改进预编译二进制镜像包兼容性</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/06/30/xmake-update-v2.5.5/">xmake v2.5.5 发布，支持下载集成二进制镜像包</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/05/15/xmake-update-v2.5.4/">xmake v2.5.4 发布，支持 apt/portage 包管理器，改进 xrepo shell 环境</a></li>
                            
                        
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                </ul>
            </div>

            <!-- baidu ads -->
            

            <!-- xmake courses -->
            <br />
            <div class="side">
                <div>
                    <i class="fa fa-external-link"></i>
                    xmake 入门课程
                </div>
                <a href="https://xmake.io/#/zh-cn/about/course" target="_blank">
                <img src="/static/img/xmake-course.png" alt="course" width="256" height="193" />
                </a>
            </div> 

            <!-- wechat public -->
            <br />
            <div class="side">
                <div>
                    <i class="fa fa-external-link"></i>
                    微信公众号
                </div>
                <img src="/static/img/weixin_public.jpg" alt="wechat" width="256" height="284" />
            </div> 

            <!-- 其他div框放到这里 -->
            <br />
            <div class="side">
                <div>
                    <i class="fa fa-tags"></i>
                    标记
                </div>
                <div class="tags-cloud">
                    
                    
                    
                    

                    

                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#文档" style="font-size: 9pt; color: #999;">文档</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#插件" style="font-size: 9.5pt; color: #888;">插件</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#tboox" style="font-size: 9.5pt; color: #999;">tboox</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#站点" style="font-size: 9pt; color: #999;">站点</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#算法" style="font-size: 9pt; color: #999;">算法</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#容器" style="font-size: 9pt; color: #999;">容器</a>
                    
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#内存池" style="font-size: 9pt; color: #999;">内存池</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#跨平台" style="font-size: 9pt; color: #999;">跨平台</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#异常捕获" style="font-size: 9pt; color: #999;">异常捕获</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#windows" style="font-size: 9.5pt; color: #999;">windows</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#编译" style="font-size: 9.5pt; color: #999;">编译</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#配置" style="font-size: 9pt; color: #999;">配置</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#stream" style="font-size: 9pt; color: #999;">stream</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#流" style="font-size: 9pt; color: #999;">流</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#静态库" style="font-size: 9pt; color: #999;">静态库</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#版本更新" style="font-size: 10pt; color: #888;">版本更新</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#类库" style="font-size: 9pt; color: #999;">类库</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#自定义脚本" style="font-size: 9pt; color: #999;">自定义脚本</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#安装" style="font-size: 9pt; color: #999;">安装</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#打包" style="font-size: 9pt; color: #999;">打包</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#android" style="font-size: 9.5pt; color: #999;">android</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#doxygen" style="font-size: 9pt; color: #999;">doxygen</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#宏脚本" style="font-size: 9pt; color: #999;">宏脚本</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#xmake.lua" style="font-size: 9pt; color: #999;">xmake.lua</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#project" style="font-size: 9pt; color: #999;">project</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#交叉编译" style="font-size: 9pt; color: #999;">交叉编译</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#build" style="font-size: 9pt; color: #999;">build</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#调试" style="font-size: 9pt; color: #999;">调试</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#运行" style="font-size: 9pt; color: #999;">运行</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#协程" style="font-size: 9.5pt; color: #999;">协程</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#调试符号" style="font-size: 9pt; color: #999;">调试符号</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#自动检测" style="font-size: 9pt; color: #999;">自动检测</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#工程描述" style="font-size: 9pt; color: #999;">工程描述</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#符号文件" style="font-size: 9pt; color: #999;">符号文件</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#ios" style="font-size: 9pt; color: #999;">ios</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#逆向分析" style="font-size: 9pt; color: #999;">逆向分析</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#手写数字识别" style="font-size: 9pt; color: #999;">手写数字识别</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#神经网络" style="font-size: 9pt; color: #999;">神经网络</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#人工智能" style="font-size: 9pt; color: #999;">人工智能</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#图像处理" style="font-size: 9pt; color: #999;">图像处理</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#定时器" style="font-size: 9pt; color: #999;">定时器</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#时间轮算法" style="font-size: 9pt; color: #999;">时间轮算法</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#context" style="font-size: 9pt; color: #999;">context</a>
                    
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#boost" style="font-size: 9pt; color: #999;">boost</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#服务器" style="font-size: 9pt; color: #999;">服务器</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#版本" style="font-size: 9pt; color: #999;">版本</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#包查找" style="font-size: 9pt; color: #999;">包查找</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#编译器特性检测" style="font-size: 9pt; color: #999;">编译器特性检测</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#预编译头文件" style="font-size: 9pt; color: #999;">预编译头文件</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#扩展模块" style="font-size: 9pt; color: #999;">扩展模块</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#稳定性修复" style="font-size: 9pt; color: #999;">稳定性修复</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#Qt" style="font-size: 9pt; color: #999;">Qt</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#IOCP" style="font-size: 9pt; color: #999;">IOCP</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#远程包管理" style="font-size: 9pt; color: #999;">远程包管理</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#包依赖" style="font-size: 9pt; color: #999;">包依赖</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#自动构建" style="font-size: 9pt; color: #999;">自动构建</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#子工程" style="font-size: 9pt; color: #999;">子工程</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#子模块" style="font-size: 9pt; color: #999;">子模块</a>
                    
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                </div>
            </div>

            

            <!-- baidu ads -->
            

        </div>
    </div>

    <!-- baidu ads -->
    
</div>



    <footer class="site-footer">
    <div class="wrapper">
        <p class="description">
             Copyright (c) 2016-2020 tboox.org 
        </p>
        <p class="contact">
            
            <a href="https://github.com/waruqi" title="GitHub"><i class="fa fa-github" aria-hidden="true"></i></a> 
             
            
            <a href="mailto:waruqi@gmail.com" title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></a> 
            
            
            <a href="https://twitter.com/waruqi" title="Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a> 
            
            <a href="/feed.xml" title="feed"><i class="fa fa-feed" aria-hidden="true"></i></a> 
        </p>
        <p class="power">
            <span>
                Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/Gaohaoyang">HyG</a> & <a href="https://pages.github.com/">Github Pages</a>.
            </span>
        </p>
    </div>
</footer>

    <div class="back-to-top">
    <a href="#top" class="scroll">
        <i class="fa fa-arrow-up" aria-hidden="true"></i>
    </a>
</div>

    <script src=" /js/main.js " charset="utf-8"></script>
    <script src=" /js/scroll.min.js " charset="utf-8"></script>
  </body>

</html>
